home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / procssng / ccs / ccs-11tl.lha / lbl / hips / sources / rle / Xhips < prev   
Encoding:
Text File  |  1992-02-26  |  504 b   |  22 lines

  1. #! /bin/csh
  2. #
  3. #set echo
  4. #set verify
  5.  
  6. # possible invocation methods
  7. #  a)  Xhips -d DISPLAY < file
  8. #  b)  Xhips < file     (gets DISPLAY from evironment)
  9. #  c)  filter < file | Xhips 
  10. #  d)  filter < file | Xhips -d DISPLAY
  11.  
  12. if ($#argv == 2) then        
  13.     picinvert | htorle | getx11 -d $argv[2]
  14. else if ($#argv == 1) then
  15.     picinvert < $argv[1] | htorle | getx11 -d $DISPLAY
  16. else if($#argv == 0) then
  17.     picinvert | htorle | getx11 -d $DISPLAY
  18. else
  19.     echo "Usage: Xhips [-d display] [< hips_file]"
  20.     exit (1)
  21. endif
  22.